﻿

<!--<If:Maintain>-->
    <form id="FrmCreateBlog" method="post" action="{RootUrl}/_Ajax/blog.aspx?op=CreateBlog">
    <h1>添加Blog</h1>
    <div>
        Name:<input type="text" name="Name" />
        Owner:<input type="text" name="Owner" />
        Introduction:<input type="text" name="Introduction" />
        Declaration:<input type="text" name="Declaration" />
        IsPublished:<select name="IsPublished"><option value="true">是</option>
                                               <option value="false">否</option>
                    </select>
        <button>提交</button>
    </div>
    </form>

                        
    
<script type="text/javascript">

$(function(){
    // 绑定添加事件
    $("#FrmCreateBlog").ajaxSubmit( function(dat){
        $('body').alert(dat.success||dat.failure||"");
    }); 
});
</script>
<!--</If:Maintain>-->